package DB;


import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class User {
    private StringProperty userName=new SimpleStringProperty();
    private StringProperty passWord=new SimpleStringProperty();
    private StringProperty name=new SimpleStringProperty();
    private IntegerProperty age=new SimpleIntegerProperty();
    private StringProperty gender=new SimpleStringProperty();
    private StringProperty id=new SimpleStringProperty();
    private StringProperty phoneNumber=new SimpleStringProperty();
    private StringProperty email=new SimpleStringProperty();
    private StringProperty role=new SimpleStringProperty();
    public User(){}
    public StringProperty userNamePro(){
        return userName;
    }
    public StringProperty PassWordPro(){
        return passWord;
    }
    public StringProperty namePro(){
        return name;
    }
    public IntegerProperty agePro(){
        return age;
    }
    public StringProperty genderPro(){
        return gender;
    }
    public StringProperty idPro(){
        return id;
    }
    public StringProperty phoneNumberPro(){
        return phoneNumber;
    }
    public StringProperty emailPro(){
        return email;
    }
    public StringProperty rolePro(){
        return role;
    }
    public void setUserName(String userName){
        this.userName.set(userName);
    }
    public void setPassWord(String passWord){
        this.passWord.set(passWord);
    }
    public void setName(String name){
        this.name.set(name);
    }
    public void setAge(int age){
        this.age.set(age);
    }
    public void setGender(String gender){
        this.gender.set(gender);
    }
    public void setId(String id){
        this.id.set(id);
    }
    public void setPhoneNumber(String phoneNumber){
        this.phoneNumber.set(phoneNumber);
    }
    public void setEmail(String email){
        this.email.set(email);
    }
    public void setRole(String role){
        this.role.set(role);
    }
    public String getUserName(){
        return userName.get();
    }
    public String getPassWord(){
        return passWord.get();
    }
    public String getName(){
        return name.get();
    }
    public int getAge(){
        return age.get();
    }
    public String getGender(){
        return gender.get();
    }
    public String getId(){
        return id.get();
    }
    public String getPhoneNumber(){
        return phoneNumber.get();
    }
    public String getEmail(){
        return email.get();
    }
    public String getRole(){
        return role.get();
    }
}

